﻿using TimeMachine.Engine.Vcs;
using TimeMachine.Engine.Vcs.Svn;

namespace TimeMachine.Engine.Agents
{
	public static class IntegrationsTestData
	{
		public static readonly IProjectSettings InputWSProjectSettings;

		public static readonly string mergingRegex;
		public static readonly string sourceFilenameRegex;

		static IntegrationsTestData()
		{
			mergingRegex = @"^(InputWS.|\s*\*?|((OK|!)-[^\s]+))?\s*(вливание|влит|влил|слияние)";
			sourceFilenameRegex = @"\.cs$";
			InputWSProjectSettings =
				new ProjectSettings
					{
						SourcesSettings =
							new SourcesSettings
								{
									MergingCommitMessageRegex = mergingRegex,
									SourceFilenameRegex = sourceFilenameRegex
								},
						StoragePath =
							@"..\..",
						Name = "InputWS",
						VcsRepo =
							new SvnRepo("svn://lit-department/InputWS"),
					};
		}
	}
}